﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NG
{
    class SubDepartment
    {
        protected int mDepNum;
        protected int mSubNum;
        protected string mSubName;


        public SubDepartment(int dnum, int snum, string sname)
        {
            this.mDepNum = dnum;
            this.mSubNum = snum;
            this.mSubName = sname;
        }


        public SubDepartment(SubDepartment sdep)
        {
            this.mDepNum = sdep.mDepNum;
            this.mSubNum = sdep.mSubNum;
            this.mSubName = sdep.mSubName;
        }

        public int DepCode
        {
            get
            {
                return this.mDepNum;
            }
        }

        public int SubDepCode
        {
            get
            {
                return this.mSubNum;
            }
        }

        public string SubDepName
        {
            get
            {
                return this.mSubName;
            }
        }

        public override string ToString()
        {
            return mSubNum + ":" + mSubName;
        }

    }
}
